<?php


    /**
    * Klasa koja komunicira sa bazom i daje i upisuje podatke o atributima.
    * @author NU SIT Bar
    * @version 1.0
    * @created 15-Aug-2012 1:28:11 PM
    */
    class Attributes_model extends CI_Model
    {

        /**
        * apartment, hotel, villa
        */
        var $type;

        function __construct(){
            parent::__construct();
        }



        /**
        *                                                                  
        * @param type
        */
        function new_attribute($type=NULL)
        {
            $this->db->insert('attributes',$_POST);
        }

        /**
        * 
        * @param type
        */
        function list_attributes($type)
        {
            $this->db->get_where('attributes',array())
        }

        /**
        * 
        * @param id
        */
        function delete_attribute($id)
        {
        }

    }